<template>
	<view class="login">
	<view class="item">
		<view class="lable">
			银行卡号
		</view>
		<view class="input">
			<u-input
			    placeholder="请输入银行卡号"
			    v-model="form.bank_account"
				border='false'
				type='text'
				placeholderStyle="color: #BBBBBB;font-size: 12px;"
				color="#000"></u-input>
		</view>
	</view>
			<view class="item">
				<view class="lable">
					开户行
				</view>
				<view class="input">
					<u-input
					    placeholder="请输入银行卡号"
					    v-model="form.bank_name"
						border='false'
						type='text'
						placeholderStyle="color: #BBBBBB;font-size: 12px;"
						color="#000"			
					 ></u-input>
				</view>
			</view>
			<view class="item">
				<view class="lable">
					联系方式
				</view>
				<view class="input">
					<view class="num">{{userInfo.mobile|formatMobile}}</view>
					<u-icon name="lock-fill" size="18"></u-icon>
				</view>
			</view>
				
		
	
		<view class="submit" @click="toPage('/pages/wallet/addBank')">修改收款账号</view>
			
	</view>
</template>

<script>
	import {mixin} from '@/Mixins/mixin.js'
	import { mapState, mapMutations } from 'vuex'	
	export default {
		mixins:[mixin],
		data() {
			return {
				showVerify:false,
				form:{	
					username :'',//账号
					bank_name:'',//密码
					bank_account :'',
				}
				
			}
		},
		
		onShow() {
			this.form.username = this.userInfo.mobile
			this.form.bank_name=this.userInfo.bank_name
			this.form.bank_account=this.userInfo.bank_account
		},
		filters:{
			formatMobile(e){
				if(e){
					var reg = /^(\d{3})\d*(\d{4})$/;
					return e.replace(reg,'$1****$2')
				}
			}
		},
		computed: {
			...mapState(['userInfo']),			
		},
		methods: {
		}
	}
</script>

<style lang="scss" scoped>
	
	.login{
		padding: 0rpx 30rpx 0rpx 30rpx;
		box-sizing: border-box;
		background-color: #FFF;
		display: flex;
		// align-items: center;
		flex-direction: column;
		// justify-content: space-between;
		::v-deep .code{
			 .u-button{
				background-color: transparent!important;
				font-size: 30rpx;
				font-weight: 400;
				color: #000;
				width: auto;
				padding: 0;
			}
		}
		.getcode{
		font-size: 13px;
		font-weight: 400;
		color: #F2E0BC;
		line-height: 18px;
		width: 180rpx;
		height: 104rpx;
		line-height: 104rpx;
		text-align: right;
		}
		.num{
			width: 100%;
			height: 68rpx;
			position: relative;
			display: flex;
			align-items: center;
			justify-content: flex-end;
			color:#000;
			margin-right: 10rpx;
			margin-top: 10rpx;
		}
		.item{
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding: 40rpx 0 14rpx 0;
			border-bottom: 1px solid #f5f5f5;
			.lable{
				font-size: 28rpx;
				font-weight: 600;
				color: #131415;
				line-height: 40rpx;
				min-width: 140rpx;
			}
			.input{
				display: flex;
				align-items: center;
				flex: 1;
				margin-left: 6rpx;
				color: #FFFFFF !important;
				font-size: 26rpx;
				
				::v-deep .input-placeholder
				{
					text-align: right;
				}
				::v-deep .uni-input-input{
					text-align: right;
					font-size: 26rpx;
				}
			}
		}
		
		
		.Ginput{			
			::v-deep .u-input{
				border-bottom:none !important;
				font-size: 28rpx;
			}
		}
		
		
		
		.submit{
			margin-top: 70rpx;
			border: 0;
			height: 80rpx;
			background: #468EFF;
			border-radius: 4px;
			font-size: 32rpx;
			// font-weight: 600;
			color: #FFF;
			line-height: 80rpx;
			text-align: center;
			position: fixed;
			bottom: 100rpx;
			width: calc(100% - 60rpx);
		}
	}	
</style>